package com.yq.bdm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yq.bdm.dao.GroupPermissionDao;
import com.yq.bdm.entity.GroupPermissionEntity;
import com.yq.bdm.service.GroupPermissionService;



@Service("groupPermissionService")
public class GroupPermissionServiceImpl implements GroupPermissionService {
	@Autowired
	private GroupPermissionDao groupPermissionDao;
	
	@Override
	public GroupPermissionEntity queryObject(Long id){
		return groupPermissionDao.queryObject(id);
	}
	
	@Override
	public List<GroupPermissionEntity> queryList(Map<String, Object> map){
		return groupPermissionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return groupPermissionDao.queryTotal(map);
	}
	
	@Override
	public void save(GroupPermissionEntity groupPermission){
		groupPermissionDao.save(groupPermission);
	}
	
	@Override
	public void update(GroupPermissionEntity groupPermission){
		groupPermissionDao.update(groupPermission);
	}
	
	@Override
	public void delete(Long id){
		groupPermissionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		groupPermissionDao.deleteBatch(ids);
	}
	
}
